home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / mf.xml < prev    next >
Text File  |  2002-08-30  |  2KB  |  62 lines

  1. <search function="mf">
  2.   <name>Moviefone</name>
  3.   <description>
  4.     Get information on movies or find local movie listings.<br/>
  5.     <div class="helpboxDescLabels">Usage:</div>
  6.       <table class="helpboxDescTable">
  7.           <tr><td>Movie Info</td><td> - </td><td>mf <<i>movie</i>></td></tr>
  8.           <tr><td>Local Listings</td><td> - </td><td>mf /location {<<i>zipcode</i>> | <<i>city</i>> }</td></tr>
  9.       </table>
  10.     <div class="helpboxDescLabels">Example:</div>
  11.     <table class="helpboxDescTable">
  12.           <tr><td>mf scorpion king</td></tr>
  13.       <tr><td>mf /location 90210</td></tr>
  14.       </table>
  15.   </description>
  16.   <category>Entertainment</category>
  17.   <link>http://www.moviefone.com/</link>
  18.   <contributor>Glenn Carr, Ryan Edwards</contributor>
  19.   <idea>Nik Devereaux</idea>
  20.   
  21.   <form name="mff"
  22.         action="http://www.moviefone.com/showtimes/moviesearch.adp"
  23.         method="get">
  24.     <input type="hidden" name="action" value="title"/>
  25.     <input type="hidden" name="query"/>
  26.   </form>
  27.   
  28.   <form name="mftheatreform"
  29.         action="http://www.moviefone.com/showtimes/closesttheaters.adp"
  30.         method="get">
  31.     <input type="hidden" name="_action" value="setLocation"/>
  32.     <input type="hidden" name="csz"/>
  33.   </form>
  34.  
  35.   <script><![CDATA[
  36.     function mf(q)
  37.     {
  38.       var args = parseArgs(q, "location");
  39.       if( nullArgs("mf",q) )
  40.         return false;
  41.       else if( args.switches.length == 1 && args.switches[0].name == "location" )
  42.       {
  43.         document.mftheatreform.csz.value = args.q;
  44.         submitForm(mftheatreform);
  45.       }
  46.       else if( args.switches.length > 1 )
  47.         nullArgs("mf","?");      
  48.       else
  49.       {
  50.         document.mff.query.value = args.q;
  51.         submitForm(mff);
  52.       }
  53.     }
  54.   ]]></script>
  55.  
  56.   <copyright>
  57.     Copyright (c) 2002 David Bau
  58.     Distributed under the terms of the
  59.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  60.   </copyright>
  61. </search>
  62.